﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WarehouseTransferDetail.aspx.cs" Inherits="WMS6.Web.GlobalControl.WarehouseTransferDetail" meta:resourcekey="Page" %>
<%@ Register src="../UserControls/LotAtrributeCtrl.ascx" tagname="LotAtrributeCtrl" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>WarehouseTransferDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
     <script src="../Js/Verification.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initDetailPage();
            setLotValue();
        }
        
        
        //设置批次属性值
        function setLotValue()
        {
            for(var i =1;i<11;i++)
            {                
                if(document.getElementById("LotAtrributeCtrl1_ctrl"+i) != null)
                {
                    if(document.getElementById("hdnType").value == "")  //非编辑状态，从ReceiptDetail中批次属性值
                    {
                        if(document.getElementById("LotAtrributeCtrl1_ctrl"+i).value.indexOf(",") == 0)
                        {
                            if(document.getElementById("LotAtrributeCtrl1_ctrl"+i).value == "")
                            {
                                document.getElementById("LotAtrributeCtrl1_ctrl"+i).value = document.getElementById("hdnLot"+i).value;
                            }
                        }
                    }
                    else  //编辑状态 取批次属性的默认值
                    {
                        if(document.getElementById("hdnLot"+i).value.indexOf(",") > 0)
                        {
                            document.getElementById("hdnLot"+i).value = "";
                        }
                        document.getElementById("LotAtrributeCtrl1_ctrl"+i).value = document.getElementById("hdnLot"+i).value;
                    }
                }
            }
            if(document.getElementById("LotAtrributeCtrl1_txtProduct") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtProduct").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtProduct").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtProduct").value = document.getElementById("hdnProductDate").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnProductDate").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnProductDate").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtProduct").value = document.getElementById("hdnProductDate").value;
                }
            }
            if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value = document.getElementById("hdnExpiryDate").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnExpiryDate").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnExpiryDate").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtExpiryDate").value = document.getElementById("hdnExpiryDate").value;
                }
            }
             
            if(document.getElementById("LotAtrributeCtrl1_txtExternalLot") != null)
            {
                if(document.getElementById("hdnType").value == "") //非编辑状态，从ReceiptDetail中批次属性值
                {
                    if(document.getElementById("LotAtrributeCtrl1_txtExternalLot").value.indexOf(",") == 0)
                    {
                        if(document.getElementById("LotAtrributeCtrl1_txtExternalLot").value == "")
                        {
                            document.getElementById("LotAtrributeCtrl1_txtExternalLot").value = document.getElementById("hdnExternal").value;
                        }
                    }
                }
                else  //编辑状态 取批次属性的默认值
                {
                    if(document.getElementById("hdnExternal").value.indexOf(",") > 0)
                    {
                        document.getElementById("hdnExternal").value = "";
                    }
                    document.getElementById("LotAtrributeCtrl1_txtExternalLot").value = document.getElementById("hdnExternal").value;
                }
            }
         }
     </script>
</head>
<body>
    <form id="F13513" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblAllocateRuleDetail" runat="server" 
                            CssClass="label_header" Text="转仓单明细" 
                            meta:resourcekey="lblAllocateRuleDetail"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" Enabled="False" 
                                onclick="btnGoBack_Click" /></td>
                </tr>
            </table>
        </div>
        
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" ></asp:Label>
        </div> 
        
                <div id="div_menu">
        <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2);" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">&nbsp;批次属性&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
        </div>
        
        
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td><asp:Label ID="lblLineID" runat="server" CssClass="label" Text="行号" 
                                meta:resourcekey="lblLineID"></asp:Label></td>
                        <td><asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品" 
                                meta:resourcekey="lblSkuID"></asp:Label></td>
                        <td><asp:Label ID="lblPackID" runat="server" CssClass="label" Text="包装" 
                                meta:resourcekey="lblPackID"></asp:Label></td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtLineID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLineID"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtSkuID"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtPackID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtPackID"></asp:TextBox></td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="lblUomID" runat="server" CssClass="label" Text="计量单位" 
                                meta:resourcekey="lblUomID"></asp:Label></td>
                        <td><asp:Label ID="lblQty" runat="server" CssClass="label" Text="转仓量" 
                                meta:resourcekey="lblQty"></asp:Label></td>
                        <td><asp:Label ID="lblShippedQty" runat="server" CssClass="label" Text="发货量" 
                                meta:resourcekey="lblShippedQty"></asp:Label></td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtUomID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtUomID"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtQty" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtQty"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtShippedQty" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtShippedQty"></asp:TextBox></td>
                    </tr>
                    
                    <tr>
                        <td><asp:Label ID="lblReceivedQty" runat="server" CssClass="label" Text="接收量" 
                                meta:resourcekey="lblReceivedQty"></asp:Label></td>
                        <td><asp:Label ID="lblLotID" runat="server" CssClass="label" Text="批号" 
                                meta:resourcekey="lblLotID"></asp:Label></td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox ID="txtReceivedQty" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtReceivedQty"></asp:TextBox></td>
                        <td><asp:TextBox ID="txtLot" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtLot"></asp:TextBox></td>
                        <td>&nbsp;</td>
                    </tr>
                 </table>
             </div>
             
             <div id="con_one_2" style="display:none;">
                    <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                        <tr>
                            <td>
                                <uc1:LotAtrributeCtrl ID="LotAtrributeCtrl1" runat="server" />
                            </td>
                        </tr>
                    </table>
             </div>
             
        </div>
    </div>
    
    <asp:HiddenField ID="hdnIntransitID" runat="server" />
    <asp:HiddenField ID="hdnSrcDbID" runat="server" />
    <asp:HiddenField ID="hdnOwnerID" runat="server" />
    <input id="hdnType" runat="server" type="hidden" />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <asp:HiddenField ID="hdnLot1" runat="server" />
    <asp:HiddenField ID="hdnLot2" runat="server" />
    <asp:HiddenField ID="hdnLot3" runat="server" />
    <asp:HiddenField ID="hdnLot4" runat="server" />
    <asp:HiddenField ID="hdnLot5" runat="server" />
    <asp:HiddenField ID="hdnLot6" runat="server" />
    <asp:HiddenField ID="hdnLot7" runat="server" />
    <asp:HiddenField ID="hdnLot8" runat="server" />
    <asp:HiddenField ID="hdnLot9" runat="server" />
    <asp:HiddenField ID="hdnLot10" runat="server" />
    <asp:HiddenField ID="hdnProductDate" runat="server" />
    <asp:HiddenField ID="hdnExpiryDate" runat="server" />
    <asp:HiddenField ID="hdnExternal" runat="server" />
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>